<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
</head>
<body>
<div id="app">
    {{content}}
    {{way2()}}
</div>
<!--引入vue文件-->
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
<script>
    const vm = Vue.createApp({
        data() {
            return {
                content: "古诗"
            }
        },
        methods: {
            way1:function(){
                alert("芳草萋萋鹦鹉洲");
            },
            way2:function(){
                this.$options.methods.way1();
            }
        }
    }).mount('#app');
</script>


</body>
</html>
